﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WPFByCoreApp
{
    /// <summary>
    /// Shell.xaml 的交互逻辑
    /// </summary>
    public partial class Shell : Window
    {
        public Shell()
        {
            InitializeComponent();

            //AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler((obj, args) => MiniDump.TryDump(@"D:\dump\1234.dmp"));

            Queue<int> queue = new Queue<int>();
            queue.Enqueue(1);
            queue.Dequeue();

            Button btn = new Button();


            //var w = new TestDataGridWindow();
            //w.ShowDialog();
            //Debug.WriteLine(w.ShowInTaskbar);

 
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            TestDataGridWindow window = new TestDataGridWindow();
            window.Show();
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            TestKeybdEventWindow window = new TestKeybdEventWindow();
            window.Show();
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            TestWindow window = new TestWindow();
            window.Show();
        }

        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            TestSaveFileDialogWindow window = new TestSaveFileDialogWindow();
            window.Show();
        }

        private void Button_Click_4(object sender, RoutedEventArgs e)
        {
            TestContextMenuWindow window = new TestContextMenuWindow();
            window.Show();
        }

        private void Button_Click_5(object sender, RoutedEventArgs e)
        {
            TestDrawGlyphRunWindow window = new TestDrawGlyphRunWindow();
            window.Show();
        }

        private void Button_Click_6(object sender, RoutedEventArgs e)
        {
            TestTAPWindow window = new TestTAPWindow();
            window.Show();
        }

        private void Button_Click_7(object sender, RoutedEventArgs e)
        {
            TestNewDataGridWindow window = new TestNewDataGridWindow();
            window.Show();
        }

        private void Button_Click_8(object sender, RoutedEventArgs e)
        {
            TestInputMethodWindow window = new TestInputMethodWindow();
            window.Show();
        }

        private void Button_Click_9(object sender, RoutedEventArgs e)
        {
            TestDrawingVisualWindow window = new TestDrawingVisualWindow();
            window.Show();
        }

        private void Button_Click_10(object sender, RoutedEventArgs e)
        {
            TestSharpDxWindow window = new TestSharpDxWindow();
            window.Show();
        }

        private void Button_Click_11(object sender, RoutedEventArgs e)
        {
            TestDrawChartWindow window = new TestDrawChartWindow();
            window.Show();
        }

        private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            TestDrawWriteableBitmapWindow window = new TestDrawWriteableBitmapWindow();
            window.Show();
        }
    }
}
